x86: make more use of wr{f,g}sbase()
authorJan Beulich <jbeulich@suse.com>
Wed, 7 Dec 2016 12:50:22 +0000 (13:50 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Dec 2016 12:50:22 +0000 (13:50 +0100)
commitb053c185e3ff58628233bf90742c1ffd9a3189ed
tree4cb6accc11b25a5b6bd2550b104a0fcf6b5d31b5
parentca9a016d527bb2572c935f2c98af52876a58ae2c
x86: make more use of wr{f,g}sbase()

With suitable canonical address checks added these can also be used in
do_set_segment_base().

Also with a canonical address check now in place, there's no need for
priv_op_write_msr() to use wrmsr_safe() anymore.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/traps.c
xen/arch/x86/x86_64/mm.c